package stub;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;
import java.util.Map;


public interface Warehouse extends Remote{
	
	public List<Product> getProducten() throws RemoteException;
	
	
	public List<String> getProductTypes() throws RemoteException;
	
	
	public List<Product> getProducten( String type ) throws RemoteException;
	
	
	public Long newOrder( String customerName ) throws RemoteException;
	
	
	public boolean order( String customerName, Long orderNr, String productId, int amount ) throws RemoteException;
	
	
	public Map<Product, Integer> getOrderOverview( String customerName, Long orderNr ) throws RemoteException;
	
	
	public double getTotalPriceForOrder( String customerName, Long orderNr ) throws RemoteException;
	
	
	public boolean secureOrder( String customerName, Long orderNr ) throws RemoteException;
}
